package com.hxexp.weixin.mvc.order.service;

import com.hxexp.weixin.common.exception.APIException;
import com.hxexp.weixin.common.exception.ServiceException;
import com.hxexp.weixin.hpe.api.orderdetail.model.OrderDetailResultBean;
import com.hxexp.weixin.hpe.api.ordersubmit.model.OrderSubmitParamBean;
import com.hxexp.weixin.hpe.api.ordersubmit.model.OrderSubmitResultBean;
import com.hxexp.weixin.hpe.api.userorderlist.model.UserOrderListResultBean;

/**
 * 订单管理接口
 * @author wang.bin
 *
 */
public interface OrderService {
    /**
     * 查询订单列表
     * @param userId 用户ID
     * @return 返回结果(0:重置密码成功，1：用户不存在，12：验证码错误)
     */
    public UserOrderListResultBean getUserOrderList(String userId,int pageSize,int pageNow) throws ServiceException;
    /**
     * 查询服务费
     * @param order priceType
     * @return
     */
    public String getServicePrice(String startStationId, String price, String priceType, String arriveStationId, String crossProvinceFlag)
            throws ServiceException;
    /**
     * 生成订单
     * @param order priceType
     * @return
     */
    public OrderSubmitResultBean orderSubmit(OrderSubmitParamBean orderSubmitParamBean) throws ServiceException;
    /**
     * 获取订单详情
     * @param orderId 订单详情参数
     * @return 订单详情返回结果
     * @throws APIException
     */
    public OrderDetailResultBean getOrderDetail(String orderId) throws ServiceException;


}
